package collection;

import model.Student;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ListSort {
    public static void main(String[] args) {
        Student s1 = new Student("001","Tom",20);
        Student s2 = new Student("002","Jerry",16);
        Student s3 = new Student("003","John",17);
        Student s4 = new Student("004","Timi",19);

        List<Student> list = new ArrayList<>();
        list.add(s1);
        list.add(s3);
        list.add(s2);
        list.add(s4);

    }
}
